package cn.changeforyou.web.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 用户表
 * @TableName user
 */
@TableName(value ="user")
@Data
public class User extends BaseEntity {

    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 
     */
    private String nickname;

    /**
     * 
     */
    private String phone;

    /**
     * 类型, 1:本地用户
     */
    private Integer type;

    @TableField(exist = false)
    private String typeName;

    /**
     *
     */
    private String password;

    /**
     * 
     */
    private String username;

    /**
     * 
     */
    private String memo;

    /**
     * 关联id(默认用户没有关联id)
     */
    private String refId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}